<?php

/*
 * Author: thanhvd
 * Mail  : thanhvd89@gmail.com
 * Blog  : thanhvd89.wordpress.com
 * 
 */

class User extends TP_Controller {
    
    private $id;
    private $username;
    private $password;
    private $level_id;
    private $salt;
    
    public function getId() { return $this->id; }    
    public function getUsername() { return $this->username; }    
    public function getPassword() { return $this->password; }    
    public function getLevel_id() { return $this->level_id; }
    public function getSalt() { return $this->salt; }
    
    public function setUsername($value) { $this->username = $value; }    
    public function setPassword($value) { $this->password = $value; }    
    public function setLevel_id($value) { $this->level_id = $value; }    
    public function setSalt($value) { $this->salt = $value; }
            
    function doAdd() {
        $rs = $this->tp_conn->Execute("select * from tp_users where id=?",array(1));
        while (!$rs->EOF) {
            print_r($rs->fields);
            $rs->MoveNext();
        }
    }
    
    function viewLogin() {
        
    }
    
}

?>
